﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
        .sortable { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; width: 150px; }
        .sortable ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px; zoom: 1; }
        .sortable ul li { margin: 0 5px 5px 5px; padding: 5px; font-size: 9pt; width: 95%; }
        .sortable ul li span { position: absolute; margin-left: -1.3em; }
        .docs { clear: left; font-weight: normal; font-size: 12pt; margin: 0; padding: 0.5em 0 1em; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <h3 class="docs">
        Time delay of 300ms:</h3>
    <DotNetAge:SimpleListView ID="SimpleListView1" runat="server" Items-Capacity="4"
        CssClass="ui-helper-reset sortable " ItemCssClass="ui-helper-reset ui-state-default ui-corner-all">
        <DotNetAge:SimpleListItem Text="Item1" />
        <DotNetAge:SimpleListItem Text="Item2" />
        <DotNetAge:SimpleListItem Text="Item3" />
    </DotNetAge:SimpleListView>
    <h3 class="docs">
        Distance delay of 15px:</h3>
    <DotNetAge:SimpleListView ID="SimpleListView2" runat="server" Items-Capacity="4"
        CssClass="ui-helper-reset sortable" ItemCssClass="ui-helper-reset ui-state-highlight ui-corner-all">
        <DotNetAge:SimpleListItem Text="Item1" />
        <DotNetAge:SimpleListItem Text="Item2" />
        <DotNetAge:SimpleListItem Text="Item3" />
    </DotNetAge:SimpleListView>
    <DotNetAge:Sortable ID="Sortable1" runat="server" DragStartDelay="300">
        <Target TargetIDs="SimpleListView1>ul" />
    </DotNetAge:Sortable>
    <DotNetAge:Sortable ID="Sortable2" runat="server" DragStartDistance="15">
        <Target TargetIDs="SimpleListView2>ul" />
    </DotNetAge:Sortable>
    </form>
</body>
</html>
